import request from '@/utils/request';
import qs from 'qs';

export const getCaptcha = () => {
    return request({
        url: '/captcha',
        method: 'get'
    });
};
export const loginHandler = (form) => {
    return request({
        url: `/login?${qs.stringify(form)}`,
        method: 'post'
    });
};